package com.mingqijia.gassafety.db.hangzhou.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 设备报警标记
 * </p>
 *
 * @author zhangfei
 * @since 2022-09-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_hz_alert_record_sign")
@ApiModel(value="AlertRecordSign对象", description="设备报警标记")
public class AlertRecordSign extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备号")
    @TableField("iMEI")
    private String iMEI;

    @ApiModelProperty(value = "数据标识")
    @TableField("alert_time")
    private String alertTime;

    @ApiModelProperty(value = "报警时间")
    @TableField("report_time")
    private Date reportTime;

    @ApiModelProperty(value = "报告类型：0正常 1误报")
    @TableField("report_type")
    private Integer reportType;

    @ApiModelProperty(value = "处理结果：0 未处理 1已办结 2人工处理 3短信处理 4电话处理 5测试 ")
    @TableField("dealt_result")
    private Integer dealtResult;

    @ApiModelProperty(value = "处理记录内容")
    @TableField("dealt_record")
    private String dealtRecord;

    @ApiModelProperty(value = "是否办结：0未办结  1已办结")
    @TableField("is_finished")
    private Integer isFinished;

    @ApiModelProperty(value = "0启用1禁用")
    @TableField("is_disabled")
    private Integer isDisabled;

    @ApiModelProperty(value = "备注说明")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "操作人名字")
    @TableField("operator_name")
    private String operatorName;

    @ApiModelProperty(value = "操作人账号")
    @TableField("operator")
    private String operator;

    @TableField(exist = false)
    private Long alarmBrokenId;

}
